//
//  PlaygroundCategory.m
//  YouthOlympic2014
//
//  Created by xiangpaopao on 14-6-25.
//  Copyright (c) 2014年 mitian. All rights reserved.
//

#import "PlaygroundCategory.h"

@implementation PlaygroundCategory


- (id)initWithDictionary:(NSDictionary*)dict
{
    self = [super init];
    if (self) {
        self.playgroundId = [dict objectForKey:@"id"];
        self.title = [dict objectForKey:@"name"];
        self.location = [dict objectForKey:@"location"];
        self.imageName = [NSString stringWithFormat:@"%@", [dict objectForKey:@"pic"]];
    }
    return self;
}

- (UIImage*)image{
    return [UIImage imageNamed:self.imageName];
}


@end
